import request from "@/request/index.js"

// 获取新闻列表
export const getXinwenList = (data) => {
	return request({
		url: '/admin/xinwentongzhi/page',
		data,
		method: 'POST',
	});
};
export const getProductList = (data) => {
	return request({
		url: '/admin/yingshishipin/page',
		data,
		method: 'POST',
	});
};
export const updateSeatStatus = (data) => {
	return request({
		url: '/yudingsheying',
		data,
		method: 'PUT',
	});
};
export const jiaoshi = (data) => {
	return request({
		url: '/zuopinzhanshi/page',
		data,
		method: 'POST',
	});
};
export const onFavorite = (data) => {
	return request({
		url: '/front/addCollect',
		data,
		method: 'POST',
	});
};
export const getSeatList = (data) => {
	return request({
		url: '/yudingsheying/page',
		data,
		method: 'POST',
	});
};
export const postZuoweiYuyue = (data) => {
	return request({
		url: '/front/postyudingsheying/',
		data,
		method: 'POST',
	});
};
export const quanziList = (data) => {
	return request({
		url: '/zhiyuanzheleixing/page',
		data,
		method: 'POST',
	});
};
export const renyuan = () => {
	return request({
		url: '/api/user/getUserInfo',
		method: 'GET',
	});
};
export const baoming = (data) => {
	return request({
		url: '/front/posthuodongbaoming',
		data,
		method: 'POST',
	});
};
export const diandongche = (data) => {
	return request({
		url: `/front/getUserCollect`,
		data,
		method: 'POST',
	});
};
export const qxxiao = (data) => {
	return request({
		url: `/baoming`,
		data,
		method: 'PUT',
	});
};
export const weixiuList = (data) => {
	return request({
		url: `/qingxi/page/${data.xingming}`,
		method: 'get',
	});
};
export const qingxiList = (data) => {
	return request({
		url: `/zhiyuanzhexiaozu/page`,
		data,
		method: 'POST',
	});
};
export const addpinglun = (data) => {
	return request({
		url: `/admin/yingpingfankui/`,
		data,
		method: 'POST',
	});
};
export const pinglunList = (data) => {
	return request({
		url: `/admin/yingpingfankui/page`,
		data,
		method: 'POST',
	});
};
export const getjvbao = (data) => {
	return request({
		url: `/liuyanbanInfo/page/${data.xingming}`,
		method: 'get',
	});
};
export const jiuyuanList = (data) => {
	return request({
		url: `/jiuyuan/page/${data.xingming}`,
		method: 'get',
	});
};
export const yvyueqingxi = (data) => {
	return request({
		url: `/yvyue/page/${data.xingming}`,
		method: 'get',
	});
};
export const userinfo = (data) => {
	return request({
		url: `/xueshengzhiyuanzhe/page`,
		data,
		method: 'POST',
	});
};
export const bianhuantu = (data) => {
	return request({
		url: '/admin/bianhuantu/page',
		data,
		method: 'POST',
	});
};
export const yvyueAdd = (data) => {
	return request({
		url: '/yvyue/add',
		data,
		method: 'POST',
	});
};
export const jiuyuanAdd = (data) => {
	return request({
		url: '/jiuyuan/add',
		data,
		method: 'POST',
	});
};
export const addjvbao = (data) => {
	return request({
		url: '/liuyanbanInfo',
		data,
		method: 'POST',
	});
};
export const weixiuAdd = (data) => {
	return request({
		url: '/qingxi/add',
		data,
		method: 'POST',
	});
};
export const diandongcheAdd = (data) => {

	return request({
		url: '/zhiyuanzhexiaozu',
		data,
		method: 'POST',
	});

};
export const addDingDan = (data) => {

	return request({
		url: '/dingdan/addDingDan',
		data,
		method: 'POST',
	});

};
export const getProductDetail = (id) => {

	return request({
		url: '/shangcheng/queryShangPingById/' + id,
		method: 'get',
	});

};